﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Interfaz_V1
{
    class CustomMessage
    {

        MessageForm message;
        int port;

        public CustomMessage(string title, string[] items)
        {

            message = new MessageForm(title);
            port = -1;
            message.setItems(items);
  
        }

        public void customShow()
        {
            message.ShowDialog();

            port = message.resp;
        }

        public int getPuerto()
        {
            return port;
        }


    }
}
